<?php
defined('_JEXEC') or die;

// disable core styles to avoid bs conflict
OC_Util::$core_styles = array();
if(isDevMode()) {
   OCP\Util::addStyle('jobseeker', 'jobseeker');
   OCP\Util::addScript('jobseeker', 'home');
} else {
   OCP\Util::addStyle('static', 'jobseeker');
   OCP\Util::addScript('static', 'apps/jobseeker.home.min');
}
$lang = PFactory::getLanguage();
$lang->load("com_jobs", JPATH_SITE, "zh-CN");
OCP\App::setActiveNavigationEntry('jobseeker_managepersontest');
?>

<div class="jos_managepersontest" id="jos_managepersontest">
<?php foreach ($_['jobseekerpersontest'] as $key=>$jobseekerpersontest): ?>
   <div class="jos_mtesteach clearfix" <?php if($key%2 != 0) echo 'style="background:#f5f7f8;"'; ?>>
      <div class="personsmallimg pull-left"><i class="person_small_<?=$key+1 ?>"></i></div>
      <dl class="pull-left">
         <dt><?=$jobseekerpersontest->title ?></dt>
         <dd><?=$jobseekerpersontest->description ?></dd>
      </dl>
      <div class="testbegin_btn pull-left">
      <?php if(empty($jobseekerpersontest->num)): ?>
      <a href="<?=OC_Helper::linkToRoute("persontest_home", array('sheetid'=>$jobseekerpersontest->id)) ?>" target="_blank" class="ppp_bluebtn testbegin_btn_a">开始测试</a>
      <?php else: ?>
      <a href="javascript:;" class="ppp_whitebtn lookresult_btn_a"  data-id='<?php echo $jobseekerpersontest->id; ?>'>查看结果</a>
      <?php if($jobseekerpersontest->end_time_diff>=90):?>
      <a href="<?=OC_Helper::linkToRoute("persontest_home", array('sheetid'=>$jobseekerpersontest->id)) ?>" target="_blank" class="ppp_bluebtn testbegin_btn_a">重新测试</a>
      <?php endif;?>
      <?php endif; ?>
      </div>
   </div>  
<?php endforeach; ?>  
   <!-- <div class="guanggao_po1"><img src="/images/3/guanggao.jpg"/></div> -->
</div>


<div class="modal hide fade resultpersontest_dialog" id="resultpersontest_dialog">
</div>
